//
//  KQChatListViewController.swift
//  ChatTest
//
//  Created by zhouxiang on 2021/9/1.
//

import UIKit
import KQChatKit
import KQChatSDK
class KQChatListViewController: KQConversationListViewController {
    
    

    override func viewDidLoad() {
        super.viewDidLoad()

        if #available(iOS 11.0, *) {
        } else {
            self.automaticallyAdjustsScrollViewInsets = false
        }
        self.hbd_barAlpha = 1
        self.hbd_barHidden = false
        self.hbd_setNeedsUpdateNavigationBar()
    
    }
    
//    override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
//        
//        if showNetworkTips && indexPath.row == 0 {
//            return
//        }
//        
//        var conversation: JMSGConversation?
//        if tableView == self.searchBar.searchResultTableView {
//            //搜索
//            conversation = self.searchList[indexPath.row]
//        } else {
////            conversation = datas[showNetworkTips ? indexPath.row - 1 : indexPath.row]
//        }
//        guard let conversa = conversation else {
//            return
//        }
//        
//        conversa.clearUnreadCount()
//        guard let cell = tableView.cellForRow(at: indexPath) as? KQConversationCell else {
//            return
//        }
//        //cell.bindConversation(conversa)
//        let vc = KQChatDetailViewController()
//        vc.conversation = conversa
//        vc.hidesBottomBarWhenPushed = true
//        navigationController?.pushViewController(vc, animated: true)
//    }
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
